Tighten the criteria for a defun in typescript-ts-mode (bug#77369)
authorYuan Fu <casouri@gmail.com>
Sun, 30 Mar 2025 04:15:02 +0000 (21:15 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 3 Apr 2025 23:51:26 +0000 (16:51 -0700)
commit9869aa1a1003fbd4b3c7d51f9cdd7e77bd68d985
tree3b2d7523e6c65477a360cb342ba231eba27225b6
parentae7f65f3f9cbe03608c9920e7f2f82a5a82e62d6
Tighten the criteria for a defun in typescript-ts-mode (bug#77369)

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--defun-type-regexp): New
variable (backported from master).
(typescript-ts-mode--defun-predicate): New function.
(typescript-ts-base-mode): Use new predicate.
lisp/progmodes/typescript-ts-mode.el